<style>
    .xh-form .btn{
        margin-right: 0px;
    }
    .xh-form tr{
        height: 45px;
    }
    .textbox-text .textbox-prompt{
        color: white;
    }
    .fa{
        margin-top: 3px;
    }
    .combo{
        border-radius:4px
    }
    .easyui-fluid{
        width: 160px ;!important;
    }
    .kv-file-content img{
        max-width: 140px;
        max-height: 60px;!important;
    }
    .file-footer-caption{
        width: 140px;
        padding-top: 0;
        font-size: 8px;
        margin-top:0px;
        margin-bottom:0px;
    }
    .file-actions{
        margin-top: 0px;
    }
    .file-preview-frame {
        max-height: 100px;
    }
	.file-preview-other{
		height: 60px;
	}

    .w-progress{position: relative;height:25px; width:130px;margin: 0 0;float: left}
    .w-progress_bg{height: 25px; border: 1px solid #ddd; overflow: hidden;background-color:#f2f2f2;}
    .w-progress_bar{background: #5FB878; width: 0; height: 25px;}
    .w-progress_btn{width: 10px; height: 25px;  position: absolute;background:#fff;left: 0px;top:0px; cursor: pointer;border:1px #ddd solid;box-sizing:border-box;}
    .w-progress_btn:hover{border-color:#F7B824;}　

</style>
<form id="xh_form" class="xh-form"  method="post"   style="margin-left: 20px;">
    <div class="xh-area-form">
        <table style="width: 100%">
            <tr>
                <td class="template" width="75"><label style="width: 75px;">工单模板:</label></td>
                <td class="template" width="160">
                    <select name="iTemplateId"   id="templateId" style="width: 160px">
                    </select>
                </td>
                <td width="75"><label style="width: 75px">工单名称:</label></td>
                <td width="160"><input style="width: 160px" name="sWorkOrderName" id="sWorkOrderName" type="text"  maxlength="50" autocomplete="off"></td>
                <td width="75"><label style="width: 75px;">执行人:</label></td>
                <td width="160">
                    <select name="executorIds[]" multiple="multiple"  id="executorIds" style="width: 160px">
                    </select>
                </td>
               <input  name="iWorkOrderId" type="hidden">
               <input id="iParentId"  name="iParentId" type="hidden">

            </tr>

            <tr>

                <td width="75"><label style="width: 75px">级别:</label></td>
                <td width="160">
                    <select id ='level'    name="iLevel" style="width:160px;height:34px">
                        {% for key ,value in workOrder_levels %}
                            <option value = '{{key}}'>{{value}}</option>
                        {% endfor %}
                    </select>
                </td>
                <td width="75"><label>完成进度:</label></td>
                <td width="160">
                    <div class="w-progress">
                        <div class="w-progress_bg">
                            <div class="w-progress_bar"></div>
                        </div>
                        <div class="w-progress_btn"></div>
                    </div>
                    <div style="float: left;font-size: 12px;margin-left:2px;width: 30px;height: 30px;line-height: 27px;" class="text">0%</div>
                    <input type="hidden" name="iProcess" id="iProcess">
                </td>
                <td><label style="width: 80px">预计工时:</label></td>
                <td>
                    <input style="width: 160px ;height:32px;" id="dTaskTime"   name="dWorkTime"   type="text" maxlength="50" autocomplete="off">
                </td>
            </tr>

            <tr>
                <td><label style="width:80px;">预计开始时间</label></td>
                <td><input style="width:160px;" class="tFromAt" name="tFromAt" autocomplete="off"></td>
                <td><label style="width:80px;">预计完成时间</label></td>
                <td><input style="width:160px;" class="tEndAt"  name="tEndAt" autocomplete="off"></td>
            </tr>

            <tr>
                <td valign="top"><label style="margin-top: 5px">工单内容:</label></td>
                <td colspan="5">
                    <textarea rows="3" name="sWorkOrderContent" ></textarea>
                </td>
            </tr>
            <tr>
                <td valign="top"><label style="margin-top: 5px">备注:</label></td>
                <td colspan="5">
                    <textarea rows="2" name="sRemarks" ></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="6">
                    <p style="color: red">
                        上传附件(请手动点击“上传”按钮后再提交信息)
                    </p>
                    <div class="form-group" style="margin-left: 0px;">
                        <input id="fileInput" class="form-control"  multiple="multiple" type="file"   />
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="xh-area-button" style="padding-left: 75px;background-color: inherit">
        {% if FormButton is defined %}{{ FormButton }}{% endif %}
    </div>
</form>